﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Net5ApiAndEfMySql.PoModel.SystemAdmin
{
	[Table("menu_db")]
	public class MenuDbPo
    {
		public MenuDbPo()
		{ }
		#region Model
		/// <summary>
		/// 菜单code  唯一主键
		/// </summary>
		[Key]
		public string menu_code
		{
			get; set;
		}
		/// <summary>
		/// 菜单名称
		/// </summary>
		public string menu_name
		{
			get; set;
		}
		/// <summary>
		/// 父级菜单
		/// </summary>
		public string parent_menu_code
		{
			get; set;
		}
		/// <summary>
		/// 菜单所属模块code  外键  与module_db的module_code关联
		/// </summary>
		public string module_code
		{
			get; set;
		}
		/// <summary>
		/// 1 代表web菜单   2 Cs端菜单
		/// </summary>
		public int? menu_type
		{
			get; set;
		}
		/// <summary>
		/// 是否有页面,当有页面代表可以点击菜单进入具体的操作页面 1:有   0:没有
		/// </summary>
		public int is_page
		{
			get; set;
		}
		/// <summary>
		/// 页面资源,  当菜单是 web的时候,存放的是路径, 当菜单是 cs的时候, 存放的是窗体类型全名
		/// </summary>
		public string page_uri
		{
			get; set;
		}
		/// <summary>
		/// 菜单级别
		/// </summary>
		public int menu_level
		{
			get; set;
		}
		/// <summary>
		/// 
		/// </summary>
		public string creator_name
		{
			get; set;
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime creator_date
		{
			get; set;
		}
		/// <summary>
		/// 
		/// </summary>
		public string modifi_name
		{
			get; set;
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? modifi_date
		{
			get; set;
		}
		#endregion Model
	}
}
